@extends('admin.layout.base')
@section('title', '问题反馈回复页面')
@section('content')
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            问题反馈回复表单     
        </h1>       
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
            <li><a href="#">Forms</a></li>
            <li class="active">General Elements</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">
        <div class="row">
            <!-- left column -->
            <div class="col-md-6">
                <!-- general form elements -->
                <div class="box box-primary">
                    <div class="box-header with-border">
<!--                        <h3 class="box-title">Quick Example</h3>-->
                    </div>
                    <!-- /.box-header -->
                    <!-- form start -->
                    <form role="form" method="post" action="{{ url("/admin/feedback/{$rec->id}") }}">
                        <input type="hidden" name="_method" value="PUT" />
                        <input type="hidden" name="_token" value="{{ csrf_token() }}">
                        <div class="box-body">
                            <div class="form-group">
                                <label for="exampleInputEmail1">用户ID</label>
                                <input type="text" name="user_id" class="form-control" id="exampleInputEmail1" value="{{$rec->user_id}}" disabled />
                            </div>
                            <div class="form-group">
                                <label for="exampleInputEmail1">反馈标题</label>
                                <input type="text" name="fb_title" class="form-control" id="exampleInputEmail1" value="{{$rec->fb_title}}" disabled />
                            </div>
                            <div class="form-group">
                                <label for="exampleInputEmail1">反馈内容</label>
                                <input type="text" name="fb_content" class="form-control" id="exampleInputEmail1" value="{{$rec->fb_content}}" disabled />
                            </div>
                            <div class="form-group">
                                <label for="exampleInputEmail1">回复内容</label>
                                <textarea name="re_content" class="form-control" id="exampleInputEmail1" value="{{$rec->re_content}}" placeholder="请输入回复内容">{{$rec->re_content}}</textarea>
                            </div>
                            <div class="box-footer">
                                <button type="submit" class="btn btn-primary" class="btn btn-info" />添加回复</button>
                            </div>
                        </div>
                        <!-- /.box-body -->     
                    </form>
                </div>
            </div>
            {{ session("info") }}
            <!--{{ dump($errors->all()) }}-->
            <ul>
            @if (count($errors) > 0)
                @foreach ($errors->all() as $error)
                <li>{{ $error }}</li> 
                @endforeach
            @endif 
            </ul>
        </div>
    </section>
    <!-- /.content -->
</div>
@endsection
@section('pluginscript')
<!-- FastClick -->
<script src="{{ asset('/dist/admin/plugins/fastclick/fastclick.js') }}"></script>
@endsection

